package com.atguigu.day23.work;

import java.io.*;

public class Work3 {
    public static void main(String[] args) {
        try (
            BufferedInputStream bis=new BufferedInputStream(new FileInputStream("d:/1.txt"));
            BufferedOutputStream bos=new BufferedOutputStream(new FileOutputStream("testIO/1.txt"));
        ){
            byte[] date=new byte[1024];
            int len;
            while((len=bis.read(date))!=-1) {
                bos.write(date, 0, len);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
